package com.jinyou.utils.common.localthread;

/**
 * 当前请求的语言
 */
public class LocalRequestLangUtils {

    private static ThreadLocal<String> localRequestLangThreadLocal = new ThreadLocal<>();

    public static void setLocalRequestLang(String lang) {
        localRequestLangThreadLocal.set(lang);
    }

    public static void remove() {
        localRequestLangThreadLocal.remove();
    }

    public static String get() {
        return localRequestLangThreadLocal.get();
    }

}